package org.Lin.model;

import java.time.LocalDateTime;

public class FriendMessage {
    private int ID;
    private int senderId;
    private int receiverId;
    private String messageData;
    private LocalDateTime sentTime;
    private String messageStatus;

    // Getters and Setters
    public int getID() { return ID; }
    public void setID(int ID) { this.ID = ID; }

    public int getSenderId() { return senderId; }
    public void setSenderId(int senderId) { this.senderId = senderId; }

    public int getReceiverId() { return receiverId; }
    public void setReceiverId(int receiverId) { this.receiverId = receiverId; }

    public String getMessageData() { return messageData; }
    public void setMessageData(String messageData) { this.messageData = messageData; }

    public LocalDateTime getSentTime() { return sentTime; }
    public void setSentTime(LocalDateTime sentTime) { this.sentTime = sentTime; }

    public String getMessageStatus() { return messageStatus; }
    public void setMessageStatus(String messageStatus) { this.messageStatus = messageStatus; }

    @Override
    public String toString() {
        return "FriendMessage{" +
                "ID=" + ID +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", messageData='" + messageData + '\'' +
                ", sentTime=" + sentTime +
                ", messageStatus='" + messageStatus + '\'' +
                '}';
    }
}
